package com.muye.dianli.fragment;

import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;

import com.muye.dianli.R;

/**
 * 首页广告碎片
 * 
 * @author TangChao
 *
 */
public class Fragment0ViewPagerFragment extends Fragment
{
	private String picURL;
	
	public String getPicURL()
	{
		return picURL;
	}
	
	public void setPicURL(String picURL)
	{
		this.picURL = picURL;
	}
	
	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
	{
		View view = inflater.inflate(R.layout.fragment0_view_pager_fragment_layout, null);
		ImageView imageView = (ImageView) view.findViewById(R.id.fragment0_view_pager_fragment_layout_image);
		imageView.setImageResource(R.drawable.main_fragment0);
		// DisplayManager.getInstance().open(getActivity());
		// DisplayConfig displayConfig = new DisplayConfig();
		// displayConfig.path = BaseUtils.getFilePath(C.FILE_PATH, picURL);
		// displayConfig.url = picURL;
		// displayConfig.w = 400;
		// displayConfig.h = 300;
		// displayConfig.defaultRes = R.drawable.ic_launcher;
		// displayConfig.imageView = imageView;
		// DisplayManager.getInstance().display(displayConfig);
		return view;
	}
	
}
